package com.mhc.haval.dal.mapper.ext;

import com.mhc.haval.dal.mapper.StaffRoleMapper;
import com.mhc.haval.dal.model.StaffRoleDO;
import com.mhc.haval.vo.StaffRoleVO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * MyBatis Ext Mapper for StaffRole.
 */

@Mapper
@Repository
public interface StaffRoleExtMapper extends StaffRoleMapper {

    /**批量新增员工-角色关联表**/
    void batchAddStaffRoleRel(List<StaffRoleDO> lists);

    /**根据条件删除员工**/
    void deleteByStaffId(Long param);

    /**根据员工ID查找员工-角色关联表**/
    List<StaffRoleDO> selectByStaffId(Long staffId);

    /**根据角色code查找员工**/
    List<StaffRoleVO> queryStaffByRole(String roleCode);

}